<template>
  <el-config-provider :locale="locale" :message="config">
    <router-view />
  </el-config-provider>
</template>

<script setup lang="ts">
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import { reactive } from "vue";
const locale = zhCn;
const config = reactive({
  max: 1,
});
</script>

<style lang="scss">
* {
  box-sizing: border-box;
  user-select: none; /* 禁用文字选择 */
  -webkit-user-drag: none; /* 禁用拖拽行为 */
}

html,
body {
  color: #636d7e;
  font-size: 14px;
  height: 100%;

  &::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

.drag {
  cursor: default;
  -webkit-app-region: drag; /* 使此区域可以拖动 */
}

/* 其他区域不允许拖动 */
.no-drag {
  -webkit-app-region: no-drag; /* 禁止拖动 */
}
</style>
